package org.example.shardiing.config;

import java.util.List;

/**
 * @author linshiqiang
 * @date 2025-06-16 16:05
 * @description
 */
public class HitBusinessTimeDTO implements Comparable<Long> {

    private Long timestamp;

    private List<String> serviceCodes;

    @Override
    public int compareTo(Long o) {
        return 0;
    }

    public static HitBusinessTimeDTO build(Long timestamp, List<String> serviceCodes) {
        HitBusinessTimeDTO businessTimeDTO = new HitBusinessTimeDTO();
        businessTimeDTO.setTimestamp(timestamp);
        businessTimeDTO.setServiceCodes(serviceCodes);
        return businessTimeDTO;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public List<String> getServiceCodes() {
        return serviceCodes;
    }

    public void setServiceCodes(List<String> serviceCodes) {
        this.serviceCodes = serviceCodes;
    }
}
